package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    public boolean saveWithFlavour(DishDTO dishDTO);
    public PageResult list(DishPageQueryDTO dishPageQueryDTO);
    public boolean delete(List<Long> ids);
    public void sale(List<Long> ids, Boolean saleStatus);
    public void update(DishDTO dishDTO);
    public DishVO getById(Long id);
    public void updateStatus(Long dishId, int status);
    public List<DishVO> listByCategoryId(Long categoryId);

//    用户端
    List<DishVO> listWithFlavor(Dish dish);
}
